package models

import (
	"github.com/astaxie/beego/orm"
)

type StudentClazz struct {
	Id      int      `orm:"column(id);pk;auto"`
	Student *Student `orm:"rel(fk);column(std_id)"`
	Clazz   *Clazz   `orm:"rel(fk);column(cls_id)"`
}

func init() {
	orm.RegisterModel(new(StudentClazz))
}

func (m *StudentClazz) TableName() string {
	return "_student_clazz"
}
